package C705;

/**
 * @program: javase
 * @description: 测试类
 * @author: luolidong
 * @create: 2021-07-5 17:43
 * @version: 1.1
 */
public class Test {
    public static void main(String[] args) {
        //获取两个对象
        SingletonMap instance1 = SingletonMap.getInstance("C705.SingletonMap");
        SingletonMap instance2 = SingletonMap.getInstance("C705.SingletonMap");
        //两个对象是同一个单例对象
        System.out.println("instance1==instance2 = " + (instance1 == instance2));

    }
}
